package com.amos.muexamclient.security.service;

import com.amos.muexamclient.sys.service.dto.SysUserDTO;

import java.util.Set;

/**
 * Copyright © 2018 嘉源锐信. All rights reserved.
 *
 * @Project: mu-exam
 * @ClassName: SysPermissionService
 * @Package: com.amos.muexamclient.security.service
 * @author: zhuqb
 * @Description:
 * @date: 2020/3/25 0025 下午 16:58
 * @Version: V1.0
 */
public interface SysPermissionService {

    /**
     * 获取角色数据权限
     *
     * @param user 用户信息
     * @return 角色权限信息
     */
    Set<String> getRolePermission(SysUserDTO user);

    /**
     * 获取菜单数据权限
     *
     * @param user 用户信息
     * @return 菜单权限信息
     */
    Set<String> getMenuPermission(SysUserDTO user);
}
